BeamSystem.Create
Description:
Creates a 2D BeamSystem with specified profile curves.
Creates a 2D BeamSystem with specified profile curves.
Overloads (4):
Create(Document,IList[Curve],SketchPlane,Int32)
public static BeamSystem Create(
Document document,
IList<Curve> profile,
SketchPlane sketchPlane,
int curveIndexForDirection
)
-
documentThe document in which the new BeamSystem is created.
-
IList<Curve>profileThe profile of the BeamSystem.
-
sketchPlaneThe work-plane for the BeamSystem.
-
Int32curveIndexForDirectionIndex of the curve in the profile to be used as direction. '0' means the default direction-to use the first curve in profile. The curve from the profile to be used as direction must be a Line.
-
SketchPlane is not valid for BeamSystem creation. -or- The input profile contains at least one helical curve and is not supported for this operation. -or- The profile curves must be in the sketch plane. -or- The curve index must be valid and the curve to be used as direction must be a Line.
-
A non-optional argument was null
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
-
The document has no open transaction.